package priv.yiyuan.example.design.visitor;

/**
 * 文本数据
 * <p>
 * 数据元素实现者类
 *
 * @author YiYuan
 * @data 2025/8/4
 * @apoNote
 */
public class TextData implements DataElement {

    /**
     * 文本内容
     */
    private String content;

    public TextData(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    @Override
    public void accept(DataVisitor visitor) {
        visitor.visit(this);
    }
}
